package com.bgs.eat.alipay.service;

import com.alipay.api.AlipayApiException;

import java.util.Map;

/**
 * lzy 2022-8-15 19点40分
 * 支付宝当面付接口
 */
public interface AlipayService {

    /**
     * 连接支付宝当面付接口，传入价格、商品编号返回支付二维码
     * lzy 2022-8-15 19点40分
     * @param price
     * @param ranNum
     * @return
     * @throws AlipayApiException
     */
    Map<String,Object> qecode(Double price,String ranNum, String subjectName) throws AlipayApiException;

    /**
     * 询问订单状态
     * lzy 2022-8-16 09点46分6
     * @param code
     * @return
     * @throws AlipayApiException
     */
    Map<String, Object> query(String code) throws AlipayApiException;
}
